package com.hxb.example.service.impl;

import com.hxb.example.service.XxlJobGroupService;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.hxb.example.entity.XxlJobGroup;
import com.hxb.example.mapper.XxlJobGroupMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现。
 *
 * @author HXB
 * @since 2024-05-08
 */
@Service
public class XxlJobGroupServiceImpl extends ServiceImpl<XxlJobGroupMapper, XxlJobGroup> implements XxlJobGroupService {

    @Override
    public List<XxlJobGroup> findAll() {
        return this.list(query().orderBy(XxlJobGroup::getAppname, true)
                .orderBy(XxlJobGroup::getTitle, true)
                .orderBy(XxlJobGroup::getId, true));
    }

}
